package org.springblade.modules.repair.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;

/**
    * 审批流程表
    */
@Data
@EqualsAndHashCode(callSuper=true)
@TableName(value = "blade_business_approve")
public class BusinessApprove extends TenantEntity {
    /**
     * 名称
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 申请类型  0-资料更改，1-补卡申请，2-请假申请，3-调休申请，4-转单申请，5-配件申请
     */
    @TableField(value = "`type`")
    private Integer type;

    /**
     * 提交人id
     */
    @TableField(value = "submit_id")
    private Long submitId;

    /**
     * 提交人名称
     */
    @TableField(value = "submit_name")
    private String submitName;

    /**
     * 审批人id
     */
    @TableField(value = "approve_ids")
    private String approveIds;

    /**
     * 审批人名称
     */
    @TableField(value = "approve_name")
    private String approveName;

    /**
     * 业务表id(对应blade_business_work表)
     */
    @TableField(value = "business_work_id")
    private Long businessWorkId;

    /**
     * 对应工单id
     */
    @TableField(value = "work_order_id")
    private Long workOrderId;

    /**
     * 手机号码
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 备注
     */
    @TableField(value = "remark", updateStrategy = FieldStrategy.IGNORED)
    private String remark;

	/**
	 * 更新备注人员id
	 */
	@TableField(value = "remark_update_user")
	private Long remarkUpdateUser;

    /**
     * 审批状态：1-待审批，2-通过，3-驳回, 4-撤回
     */
    @TableField(value = "approve_status")
    private Integer approveStatus;
}
